﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyLoaiPhongChieu.aspx.cs" Inherits="LotteCinema.QuanLyLoaiPhongChieu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style27
        {
            width: 229px;
        }
        .style28
        {
            width: 173px;
        }
        .style29
        {
            margin-left: 14px;
        }
        .style30
        {
            margin-left: 139px;
        }
        .style31
        {
            font-size: x-large;
        }
        .style32
        {
            width: 477px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title"  style="font-size:14pt;">QUẢN LÝ LOẠI PHÒNG CHIẾU</div>
    <table style="width:100%;">
        
        <tr>
            <td class="style26" colspan="3" align="center">
                <asp:Label ID="lblThongbao" runat="server" CssClass="style31" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
        <td style="width:350px;"></td>
            <td class="style27" align="right">
                <asp:Label ID="Label2" runat="server" Text="Mã Loại Phòng Chiếu:"></asp:Label>&nbsp&nbsp&nbsp
            </td>
            <td class="style28">
                <asp:DropDownList ID="DDLMaLPC" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DDLMaLPC_SelectedIndexChanged" Width="144px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width:350px;"></td>
            <td class="style27" align="right">
                <asp:Label ID="Label3" runat="server" Text="Tên Loại Phòng Chiếu:"></asp:Label>&nbsp&nbsp&nbsp
            </td>
            <td class="style28">
                <asp:TextBox ID="txtTenLPC" runat="server" Width="134px"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="bttimkiem" runat="server" onclick="bttimkiem_Click" 
                    Text="tìm kiếm" />
            </td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style32">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td align="center" class="style32">
                <asp:GridView ID="grLoaiPC" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
                    BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    CssClass="style29" DataKeyNames="MALP" 
                    GridLines="Vertical" 
                    onselectedindexchanged="grLoaiPC_SelectedIndexChanged" 
                    onpageindexchanging="grLoaiPC_PageIndexChanging">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="MALP" HeaderText="MALP" ReadOnly="True" 
                            SortExpression="MALP" />
                        <asp:BoundField DataField="TENLP" HeaderText="TENLP" HtmlEncode="False" 
                            SortExpression="TENLP" />
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [LOAIPHONGCHIEU]"></asp:SqlDataSource>
            </td>
            <td style="width:150px;">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style32">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width:200px;">
                &nbsp;</td>
            <td class="style32">
                <asp:ImageButton ID="imThem" runat="server" CssClass="style30" Height="52px" 
                    ImageUrl="~/Images/THEM.png" onclick="imThem_Click" Width="110px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" onclick="imXoa_Click" Width="110px" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" onclick="imSua_Click" Width="110px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
